@keyframes rote {
	0% {}

	100% {
		transform: rotate(360deg);
	}
}

/** header  **/
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background-color: var(--jj-header-bg-color);
	transition: transform 0.2s;
	padding-left: calc(100vw - 100%);

	&.hidden {
		transform: translate3D(0, -100%, 0);
	}

	&_container {
		max-width: 1440px;
		margin: 0 auto;
	}

	&_content {
		height: 60px;
		padding: 0 24px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		color: var(--yublog_header_text_color);
	}

	&_left {
		flex-grow: 1;
		min-width: 0;
		height: 100%;
		display: flex;
		align-items: center;

		&_logo {
			height: 38px;

			&_pc {
				display: block;
				height: 100%;
				margin-right: 12px;
				pointer-events: none;
			}

			&_mobile {
				display: none;
				height: 100%;
				pointer-events: none;
			}
		}

		&_nav {
			height: 100%;
			position: relative;

			&_mobile_menu_wrap {
				display: none;
				height: 100%;
			}

			&_mobile_menu {
				height: 100%;
				width: 65px;
				display: flex;
				align-items: center;
				justify-content: center;
				font-size: 16px;
				color: var(--yublog_header_text_active);
				white-space: nowrap;
				cursor: pointer;

				.yublog_header_down {
					margin-left: 4px;
				}

				&.active .yublog_header_down {
					transition: all 0.5s;
					transform: rotate(180deg);
				}
			}

			.header_nav_list {
				display: flex;
				align-items: center;
				white-space: nowrap;

				&_item {
					position: relative;
					display: block;
					height: 60px;
					line-height: 60px;
					padding: 0 10px;
					font-size: 14px;
					color: var(--yublog_header_text_color);
					text-decoration: none;
					white-space: nowrap;

					&::after {
						content: "";
						position: absolute;
						left: 10px;
						bottom: 0;
						right: 10px;
						background-color: var(--yublog_header_text_active);
					}

					&.active {
						color: var(--yublog_header_text_active);
					}

					&:hover {
						color: var(--yublog_header_text_active);
					}

					&:hover::after {
						height: 2px;
					}
				}
			}
		}
	}

	&_right {
		display: flex;
		align-items: center;

		.header_search_icon_wrap {
			display: none;

			.header_search_icon {
				i {
					font-size: 22px;
					cursor: pointer;
				}
			}
		}

		.header_search_wrap {
			width: 370px;
			height: 100%;
			display: flex;
			align-items: center;

			&.open_search .header_article_btn {
				margin-left: 0;
				width: 0;
				overflow: hidden;
			}
		}

		.header_menu_wrap {
			margin-left: 10px;
			height: 100%;
			position: relative;

			.header_avatar {
				height: 100%;
				width: 40px;
				display: flex;
				align-items: center;
				justify-content: center;
				cursor: pointer;

				img {
					width: 36px;
					height: 36px;
					border-radius: 50%;
					overflow: hidden;
					// background-color: var(--jj-img-skeleton-bg);
				}
			}
		}

		.header-menu-body {
			position: absolute;
			top: 120%;
			right: 0;
			margin-top: -5px;
			width: 260px;
			padding: 20px;
			background-color: var(--yublog_header_bg_color);
			border: 1px solid var(--yublog_header_nav_border_color);
			border-radius: 4px;
			box-shadow: 0 8px 24px var(--yublog_header_nav_box_shadow);
			display: none;
		}

		.header-menu-body.visible {
			display: block;
		}

		.header-menu-head {
			display: flex;
			align-items: center;
			margin-bottom: 26px;
		}

		.header-menu-avatar {
			flex-shrink: 0;
			width: 48px;
			height: 48px;
			margin-right: 12px;
		}

		.header-menu-avatar img {
			width: 100%;
			height: 100%;
			vertical-align: top;
			border-radius: 50%;
			background-color: var(--jj-img-skeleton-bg);
		}

		.header-menu-username {
			flex-grow: 1;
			min-width: 0;
			font-size: 16px;
			color: var(--jj-header-menu-text-color);
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.header-menu-count {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding-bottom: 12px;
			border-bottom: 1px solid var(--yublog_header_nav_border_color);
			margin-bottom: 10px;
		}

		.header-menu-count-item {
			width: 1px;
			flex-grow: 1;
			text-align: center;
		}

		.header-menu-count-item+.header-menu-count-item {
			margin-left: 10px;
		}

		.header-menu-count-item-num {
			font-size: 16px;
			color: var(--jj-header-menu-text-color);
			margin-bottom: 4px;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.header-menu-count-item-title {
			font-size: 12px;
			color: var(--jj-header-menu-count-title-color);
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

		.header-menu-list {
			display: flex;
			flex-wrap: wrap;
			padding-bottom: 10px;
			border-bottom: 1px solid var(--yublog_header_nav_border_color);
		}

		.header-menu-list-item {
			flex-grow: 1;
			width: calc(50% - 10px);
			height: 40px;
			line-height: 40px;
			text-align: center;
			font-size: 14px;
			color: var(--jj-header-menu-text-color);
			text-decoration: none;
			border-radius: 4px;
		}

		.header-menu-list-item:nth-child(odd) {
			margin-right: 10px;
		}

		.header-menu-list-item:nth-child(even) {
			margin-left: 10px;
		}

		.header-menu-list-item:hover {
			background-color: var(--jj-header-menu-item-bg-hover);
		}

		.header-menu-list-item:active {
			opacity: 0.7;
		}

		.header-menu-list-item-icon {
			font-size: 16px;
			color: var(--jj-header-menu-item-icon);
			margin-right: 4px;
			line-height: inherit;
		}

		.header-menu-footer {
			margin-top: 12px;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}

		.header-menu-footer-btn {
			font-size: 12px;
			color: var(--jj-header-menu-footer-text-color);
			text-decoration: none;
		}

		.header-menu-footer-btn:hover {
			color: var(--jj-header-menu-footer-text-color-hover);
		}

		.header-menu-footer-btn:active {
			opacity: 0.7;
		}

		.header-login-btn {
			margin-left: 10px;
			height: 36px;
			padding: 4px 16px;
			background-color: var(--jj-header-login-btn-bg);
			border: 1px solid var(--jj-header-login-btn-border);
			border-radius: 4px;
			outline: none;
			font-size: 14px;
			color: var(--jj-header-login-btn-color);
			cursor: pointer;
			transition: background-color 0.1s linear;
		}

		.header-login-btn:hover {
			background-color: var(--jj-header-login-btn-bg-hover);
		}

		.header-login-btn:active {
			opacity: 0.7;
		}
	}
}

.header_search_form {
	flex-grow: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	height: 36px;
	position: relative;

	.header_search_input {
		display: block;
		width: 100%;
		height: 100%;
		border: 1px solid var(--yublog_header_search_input_border);
		border-radius: 3px;
		outline: none;
		padding: 5px 53px 5px 10px;
		font-size: 13px;
		color: var(--yublog_header_search_input_color);
		transition: width 0.2s;

		&:focus {
			border: 1px solid var(--yublog_header_search_input_border_active);
		}

		&:focus+.header_search_btn {
			color: var(--yublog_header_search_btn_color_active);
			background-color: var(--yublog_header_search_btn_bg_active);
		}
	}

	.header_search_btn {
		position: absolute;
		top: 3px;
		right: 3px;
		width: 40px;
		height: 30px;
		font-size: 20px;
		color: var(--yublog_header_search_btn_color);
		background-color: var(--yublog_header_search_btn_bg);
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;

		i {
			font-size: 20px;
		}
	}
}

.header_article_btn {
	flex-shrink: 0;
	margin-left: 20px;
	width: 70px;
	height: 36px;
	line-height: 36px;
	text-align: center;
	font-size: 14px;
	text-decoration: none;
	background-color: var(--yublog_header_article_btn_bg);
	color: var(--yublog_header_article_btn_color);
	border-radius: 3px;
	white-space: nowrap;
	transition: margin 0.2s, width 0.2s, background-color 0.1s linear;

	&:active {
		opacity: 0.7;
	}
}

.search_history {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	margin-top: 1px;
	background-color: var(--yublog_header_bg_color);
	border: 1px solid var(--yublog_header_nav_border_color);
	border-radius: 4px;
	// box-shadow: 0 8px 24px var(--yublog_header_nav_box_shadow);
	overflow: hidden;
	z-index: 99;

	&.visible {
		display: block;
	}

	.search_history_head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 6px 12px;
		font-size: 12px;
		line-height: 2;
		color: var(--yublog_search_history_title_color);
		border-bottom: 1px solid var(--yublog_header_nav_border_color);

		.search_history_clear_btn {
			cursor: pointer;
			color: var(--yublog_search_history_clear_color);
		}
	}

	.search_history_list {
		font-size: 12px;
		line-height: 2;
		color: var(--yublog_search_history_text_color);
		cursor: pointer;

		.search_history_list_item {
			padding: 6px 12px;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;

			&:hover {
				background-color: var(--yublog_search_history_item_bg);
			}
		}
	}
}

.mobile-search {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: none;
	overflow: hidden;
}

.mobile-search.visible .mobile-search-mask {
	opacity: 1;
}

.mobile-search.visible .mobile-search-content {
	transform: translate3D(0, 0, 0);
}

.mobile-search-mask {
	height: 100%;
	background-color: var(--jj-mobile-search-mask-bg);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.mobile-search-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 120px;
	background-color: var(--jj-mobile-search-bg);
	transition: transform 0.15s ease-in-out;
	transform: translate3D(0, -100%, 0);
}

.mobile-search-close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 20px;
	color: var(--jj-header-search-btn-color);
	cursor: pointer;
}

.mobile-search-close:active {
	opacity: 0.7;
}

.mobile-search-close-icon {
	font-size: inherit;
}

.mobile-search-body {
	height: 100%;
	padding: 20px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.login-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	overflow: auto;
	display: none;
}

.login-dialog.visible {
	display: block;
}

.login-dialog-mask {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--jj-login-dialog-mask-bg);
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.login-dialog-mask.visible {
	opacity: 1;
}

.login-dialog-content-wrap {
	min-height: 100%;
	padding: 120px 0 20px;
	display: flex;
	position: relative;
}

.login-dialog-content {
	width: 640px;
	margin: auto;
	background-color: var(--jj-login-dialog-content-bg);
	border-radius: 8px;
	position: relative;
	opacity: 0;
	transform: translate3D(0, -50%, 0);
	transform-origin: center bottom;
	transition: transform 0.15s, opacity 0.15s;
}

.login-dialog-content.visible {
	opacity: 1;
	transform: translate3D(0, 0, 0);
}

.login-dialog-content.hidden {
	opacity: 0;
	transform: translate3D(0, 50%, 0);
}

.login-dialog-close {
	position: absolute;
	top: 20px;
	right: 27px;
	font-size: 18px;
	color: var(--jj-login-dialog-close-color);
	cursor: pointer;
}

.login-dialog-close:active {
	opacity: 0.7;
}

.login-dialog-close-icon {
	font-size: inherit;
}

.login-dialog-head {
	padding: 20px 27px;
	border-bottom: 1px solid var(--jj-login-dialog-head-border);
}

.login-dialog-title {
	font-size: 20px;
	font-weight: normal;
	color: var(--jj-login-dialog-title-color);
}

.login-dialog-body {
	display: flex;
	padding: 20px 27px 0;
}

.login-dialog-body-left {
	flex-grow: 1;
	min-width: 0;
}

.login-dialog-body-left-title {
	font-size: 16px;
	color: var(--jj-login-dialog-title-color);
	margin-bottom: 16px;
}

.login-dialog-input-group input[type="text"],
.login-dialog-input-group input[type="password"] {
	display: block;
	width: 100%;
	height: 40px;
	padding: 10px;
	color: var(--jj-login-dialog-input-color);
	background-color: var(--jj-login-dialog-input-bg);
	border: 1px solid var(--jj-login-dialog-input-border);
	border-radius: 4px;
	outline: none;
}

.login-dialog-input-group input[type="text"]::placeholder,
.login-dialog-input-group input[type="password"]::placeholder {
	color: var(--jj-login-dialog-input-placeholder-color);
}

.login-dialog-input-group input[type="text"]:focus,
.login-dialog-input-group input[type="password"]:focus {
	background-color: var(--jj-login-dialog-input-bg-focus);
	border-color: var(--jj-login-dialog-input-border-focus);
}

.login-dialog-input-group+.login-dialog-input-group {
	margin-top: 20px;
}

.login-dialog-input-group.submit {
	margin-top: 30px;
}

.login-dialog-input-group.remember {
	margin-top: 15px;
}

.login-dialog-input-group.remember {
	position: relative;
	display: flex;
}

.login-dialog-input-group.remember .remember-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.login-dialog-input-group.remember input[type="checkbox"] {
	position: absolute;
	width: 0;
	height: 0;
	margin: 0;
	outline: none;
	z-index: -1;
	opacity: 0;
}

.login-dialog-input-group.remember input[type="checkbox"]:checked+.login-dialog-input-checkbox {
	border-color: var(--jj-login-dialog-input-checkbox-border-active);
	background-color: var(--jj-login-dialog-input-checkbox-bg-active);
}

.login-dialog-input-group.remember input[type="checkbox"]:checked+.login-dialog-input-checkbox .login-dialog-input-checkbox-icon {
	opacity: 1;
	transform: scale(1);
}

.login-dialog-input-group.remember input[type="checkbox"]:checked~.login-dialog-input-checkbox-text {
	color: var(--jj-login-dialog-input-checkbox-text-active);
}

.login-dialog-input-group.username:focus-within .greeting {
	display: block;
}

.login-dialog-input-group.username:focus-within~.normal {
	display: none;
}

.login-dialog-input-group.password:focus-within .blindfold {
	display: block;
}

.login-dialog-input-group.password:focus-within~.normal {
	display: none;
}

.login-dialog-input-checkbox {
	flex-shrink: 0;
	margin-right: 6px;
	width: 16px;
	height: 16px;
	border: 1px solid var(--jj-login-dialog-input-checkbox-border);
	border-radius: 2px;
	text-align: center;
	line-height: 14px;
	transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.login-dialog-input-checkbox-icon {
	display: block;
	font-size: 12px;
	color: var(--jj-login-dialog-input-checkbox-icon);
	transform: scale(0);
	transition: transform 0.2s ease-in-out;
}

.login-dialog-input-checkbox-text {
	font-size: 13px;
	color: var(--jj-login-dialog-title-color);
	line-height: 1;
}

.login-dialog-form-btn {
	display: block;
	width: 100%;
	height: 40px;
	background-color: var(--jj-login-dialog-form-btn-bg);
	border: none;
	border-radius: 4px;
	font-size: 14px;
	color: var(--jj-login-dialog-form-btn-color);
	cursor: pointer;
	transition: background-color 0.1s linear;
}

.login-dialog-form-btn:hover {
	background-color: var(--jj-login-dialog-form-btn-bg-hover);
}

.login-dialog-form-btn:active {
	opacity: 0.7;
}

.panfish-img {
	position: absolute;
	top: 0;
	left: 50%;
	width: 120px;
	display: none;
}

.panfish-img.normal {
	display: block;
	transform: translate(-50%, -83%);
}

.panfish-img.greeting {
	transform: translate(-50%, -75.8%);
}

.panfish-img.blindfold {
	transform: translate(-50%, -75%);
}

.login-dialog-body-right {
	flex-shrink: 0;
	width: 230px;
	padding-left: 36px;
	margin-left: 36px;
	border-left: 1px solid var(--jj-login-dialog-body-right-border);
}

.login-dialog-qrcode-title {
	font-size: 16px;
	color: #252933;
	margin-bottom: 16px;
}

.login-dialog-qrcode {
	margin-bottom: 16px;
	border: 1px solid var(--jj-login-dialog-qrcode-border);
	border-radius: 4px;
	width: 150px;
	height: 150px;
	padding: 5px;
	overflow: hidden;
}

.login-dialog-qrcode-img {
	width: 100%;
	height: 100%;
	vertical-align: top;
}

.login-dialog-qrcode-tips {
	font-size: 16px;
	color: var(--jj-login-dialog-title-color);
}

.login-dialog-footer {
	margin-top: 40px;
	padding-bottom: 20px;
	font-size: 14px;
	color: var(--jj-login-dialog-footer-color);
	text-align: center;
}

.login-dialog-link {
	text-decoration: none;
	color: var(--jj-login-dialog-link-color);
	margin: 0 5px;
}

.login-dialog-link:hover {
	color: var(--jj-login-dialog-link-color-hover);
}

.login-dialog-link:active {
	opacity: 0.7;
}

@media (max-width: 1200px) {
	html {
		font-size: 16px;
	}

	.header_left_nav_mobile_menu_wrap {
		display: block;
	}

	.header_left_nav .header_nav_list {
		position: absolute;
		top: 80%;
		left: 0;
		margin-left: -30px;
		width: 140px;
		padding: 8px;
		display: none;
		flex-direction: column;
		background-color: #fff;
		border: 1px solid var(--yublog_header_nav_border_color);
		border-radius: 4px;
		box-shadow: 0 8px 24px var(--yublog_header_nav_box_shadow);

		&.visible {
			display: flex;
		}

		.header_nav_list_item {
			height: 36px;
			line-height: 36px;
		}
	}
}

@media (max-width: 992px) {
	html {
		font-size: 14px;
	}

	.header_left_logo_pc {
		display: none;
	}

	.header_left_logo_mobile {
		display: block;
	}

	.header_right .header_search_icon_wrap {
		display: block;
	}

	.header_right .header_search_wrap {
		width: auto;
	}

	.header_right .header_search_wrap .header_search_form {
		display: none;
	}

	.login-dialog-content {
		width: 80%;
	}

	.login-dialog-body-right {
		display: none;
	}
}

@media (max-width: 768px) {
	html {
		font-size: 14px;
	}

	.header_right .header_search_wrap {
		display: none;
	}
}

@media (max-width: 750px) {
	html {
		font-size: 14px;
	}
}

@media (max-width: 400px) {
	html {
		font-size: 14px;
	}
}